package com.eu.ebpm.engine.repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.eu.ebpm.engine.entity.runtime.TaskEntity;
import com.eu.ebpm.engine.service.Task;

/**
 * 
 * 类名称: TaskDao
 * 类描述: 
 * @author 王晓华
 * @since 2015-1-22 下午04:21:04
 * @version v1.0
 */
public interface TaskRepository {

	public void insert(Task task);
	
	public int delete(@Param("id") Long id);
	
	public int updateBySign(@Param("assignee") String assignee, @Param("assigneeTime") Date assigneeTime, @Param("id") Long id);
	
	public TaskEntity queryById(@Param("taskId") Long taskId);
	
	public Task singleResult(Map<String, Object> args);
	
	public List<Task> taskList(Map<String, Object> args, RowBounds rowBounds);
	
	public List<Task> taskListByIdentity(Map<String, Object> args, RowBounds rowBounds);
	
	public List<Long> selectIdsForUpdate(@Param("executionId") Long executionId);
	
}
